package com.wjs.juc.ThreadLocal;

import java.util.concurrent.TimeUnit;

class MyObject{
    @Override
    protected void finalize() throws Throwable {
        System.out.println("调用了finalize");
    }
}
public class ThreadLocalReference {
    public static void main(String[] args) throws InterruptedException {
        MyObject myObject = new MyObject();
        myObject=null;
        TimeUnit.SECONDS.sleep(1);
        System.gc();
    }
}
